home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Mapping
/
m-delta-time
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-24
|
1KB
|
56 lines
m-delta-time voice-number length-list delta-time
(setq length1 '(-1/4 1/8 1/8 -1/20 1/20 2/20 -1/20 1/12 -2/12))
(setq delta1 '(1/2 3/4 1/2 3/4 5/4))
(m-delta-time 4 length1 delta1)
=> (-1/4 1/2 5/4)
=> (-3/8 3/4 -7/8)
=> (-11/20 1/2 -19/20)
=> (-3/5 3/4 -13/20)
(setq length2 '(-480 240 240 -96 96 192 -96 160 -320))
(setq delta2 '(1440 960 960 1200 960))
(m-delta-time 1 length2 delta2)
=> (-480 1440 -480)
(setq len1 (m-delta-time 1 length1 delta1))
=> (-1/4 1/2 5/4)
(setq len2 (m-delta-time 2 length1 delta1))
=> (-3/8 3/4 -7/8)
(setq len3 (m-delta-time 3 length1 delta1))
=> (-11/20 1/2 -19/20)
(setq len4 (m-delta-time 4 length1 delta1))
=> (-3/5 3/4 -13/20)
(setq length
(qlength
'((28-01[-5] 20-2[-3] 4-0 12-1[-2]
4-1 28-01[-5] 20-2[-5]1[-2])
(20-[-2][11][-2]1[-4]1[-8]1[-3][17]))))
(setq positive (l-count :note :content length))
(setq delta-sel
(cfunction
(gen-noise-white
(apply '+ positive) 1.0 0.444555) '(1/2 3/4 5/4)))
(setq delta (symbol-divide positive nil nil delta-sel))
(setq v1 (m-delta-time 1 length delta))
=> ((-1/28 5/4 1/2 -9/140 3/4) (-1/10 5/4 -1/10 1/2 -19/20))
(setq v2 (m-delta-time 2 length delta))
=> ((-1/4 5/4 1/2 -3/5) (-3/4 3/4 -3/20 5/4))
(setq va (m-delta-time 3 length delta))
=> ((-3/4 5/4 -3/5) (-1/1 3/4 -23/20))
(setq vc (m-delta-time 4 length delta))
=> ((-1/1 1/2 -11/10) (-29/10))